package com.zsc.spring.study.regbean;

import org.springframework.context.annotation.ImportSelector;
import org.springframework.core.type.AnnotationMetadata;

public class MyImportSelector implements ImportSelector {


    /**
     * 返回需要注入bean的全类名数组
     * @param annotationMetadata
     */
    @Override
    public String[] selectImports(AnnotationMetadata annotationMetadata) {
        return new String[]{"com.rn.model.Red","com.rn.model.Blue"};
    }
}
